/* 默认状态 */
::-webkit-scrollbar {
  width: 0px; /* 设置滚动条宽度 */
}

/* 滑道（thumb）部分的样式 */
::-webkit-scrollbar-thumb {
  border-radius: 5px; /* 边角圆形化 */
  background-color: transparent; /* 设置滑道颜色 */
  &:hover,
  &:active {
    background-color: #c3c0be; /* 修改滑道颜色为深灰色 */
  }
}
&:hover::-webkit-scrollbar-thumb {
  background-color: #c3c0be; /* 修改滑道颜色为深灰色 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  vertical-align: middle;
  object-fit: cover;
}

#app {
  width: 100%;
  height: 100vh;
  background-color: #f6f6f6;
}

.clearfix::before,
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drag {
  -webkit-app-region: drag;
}
.no-drag {
  -webkit-app-region: no-drag;
}
